﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Resources;

namespace ErgoBreak.Core.Resources
{
    public class ResourceBuilder
    {
        private string path;
        private IDictionary<string, object> resources;

        public ResourceBuilder(string basePath)
        {
            this.path = basePath;
            this.resources = new Dictionary<string, object>();
        }

        private void GetIcons()
        {
            resources.Add("TrayEnabled", new Icon(path + @"\Resources\TrayEnabled.ico"));
            resources.Add("TrayDisabled", new Icon(path + @"\Resources\TrayDisabled.ico"));
        }

        public ResourceCollection Build()
        {
            GetIcons();
            return new ResourceCollection(resources);
        }
    }
}
